// @APIVersion 1.0.0
// @Title 重庆三峡职业学院
// @Description 这是一个由后端工程师开发的 考勤系统的接口文档
// @Contact luonancom@qq.com
package routers

import (
	"classmates/controllers"

	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	ns := beego.NewNamespace("/api",

		beego.NSNamespace("/class",
			beego.NSInclude(
				&controllers.ClassController{},
			),
		),

		beego.NSNamespace("/classmates",
			beego.NSInclude(
				&controllers.ClassmatesController{},
			),
		),
		beego.NSNamespace("/homework",
			beego.NSInclude(
				&controllers.HomeWorkController{},
			),
		),
	)
	beego.AddNamespace(ns)
	beego.Router("/", &controllers.ClassmatesController{}, "*:Index")
}
